/*
 * @brief: 
 * @Author: TzzzT
 * @Date: 2023-02-04 14:21:23
 * @LastEditTime: 2023-02-09 21:02:45
 * @LastEditors: TzzzT
 */

#include "stdint.h"

typedef enum by8301_command_e{
    PLAY_MP3 = 0x01,
    PAUSE_MP3 = 0x02,
    NEXT_MP3 = 0x03,
    LAST_MP3 = 0x04,
    VOL_ADD_MP3 = 0x05,
    VOL_SUB_MP3 = 0x06,
    STANDBY_WORK_MP3 = 0x07,
    RESET_MP3 = 0x09,
    FAST_FORWORD_MP3 = 0x0A,
    FAST_BACK_MP3 = 0x0B,
    STOP_MP3 = 0x0E,

    SET_VOL_MP3 = 0x31,
    SET_EQ_MP3 = 0x32,
    SET_LOOP_MP3 = 0x33,
    SWITCH_FOLDERS_MP3 = 0x34,
    SWITCH_DEVICE_MP3 = 0x35,
    SELECT_SONG_MP3 = 0x41,
    SELECT_FOLDER_SONG_MP3 = 0x42,
    INSERT_NEW_SONG_MP3 = 0x43,
    INSERT_NEW_FOLDER_SONG_MP3 = 0x44,
    
}by8301_command_t;


typedef enum {
    START_GAME_SOUND = 0X01,
    END_GAME_SOUND = 0X02,
    BE_HITTED_SOUND = 0X03,
    DEAD_SOUND = 0X04,
    RRBORN_SOUND = 0X05,
    KILL_SOUND = 0X06,
}sound_e;


void by8301_init(void);
void play_new_song(sound_e song_sn);

